package com.eddy.entity;

import java.sql.Date;

public class User {
    private Integer id;
    private String userName;
    private String password;
    private Boolean enable;
    private Integer maxError;
    private Date validTime;
    private Boolean isRemote;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", enable=" + enable +
                ", maxError=" + maxError +
                ", validTime=" + validTime +
                ", isRemote=" + isRemote +
                '}';
    }

    public User(Integer id, String userName, String password, Boolean enable, Integer maxError, Date validTime, Boolean isRemote) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.enable = enable;
        this.maxError = maxError;
        this.validTime = validTime;
        this.isRemote = isRemote;
    }

    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Integer getMaxError() {
        return maxError;
    }

    public void setMaxError(Integer maxError) {
        this.maxError = maxError;
    }

    public Date getValidTime() {
        return validTime;
    }

    public void setValidTime(Date validTime) {
        this.validTime = validTime;
    }

    public Boolean getIsRemote() {
        return isRemote;
    }

    public void setIsRemote(Boolean isRemote) {
        this.isRemote = isRemote;
    }
}
